import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import Admin from '../views/Admin.vue'
import Study from '../views/Study.vue'
import Exam from '../views/Exam.vue'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Index',
        component: Index
    },
    {
        path: '/admin',
        name: 'Admin',
        component: Admin
    },
    {
        path: '/study',
        name: 'Study',
        component: Study
    },
    {
        path: '/exam',
        name: 'Exam',
        component: Exam
    }
]

const router = new VueRouter({
    routes
})

export default router